import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [


    //蛋糕页面的路由地址
    {
        path: '/Home',
        name: 'Home',
        component: () =>
            import ("../views/ddgHD/Home.vue")
    },
    {
        path: '/crowd',
        name: 'crowd',
        component: () =>
            import ("../components/ddgHD/crowd.vue")
    },
    {
        path: '/cywh',
        name: 'Cywh',
        component: () =>
            import ("../components/ddgHD/cywh.vue")
    },
    {
        path: '/xsqg',
        name: 'Xsqg',
        component: () =>
            import ("../components/ddgHD/xsqg.vue"),
        children: [{
                path: '/xsqga/:city',
                name: 'Xsqga',
                component: () =>
                    import ("../components/ddgHD/xsqga.vue")
            },
            {
                path: '/xsqgb',
                name: 'Xsqgb',
                component: () =>
                    import ("../components/ddgHD/xsqgb.vue")
            },
        ]
    },
    {
        path: '/citys',
        name: 'Citys',
        component: () =>
            import ("../components/ddgHD/citys.vue")
    },
    {
        path: '/sliderinfo',
        name: 'Sliderinfo',
        component: () =>
            import ("../components/ddgHD/sliderinfo.vue"),
        children: [{
                path: '/twoa',
                name: 'Twoa',
                component: () =>
                    import ("../components/ddgHD/twoa.vue")
            },
            {
                path: '/twob',
                name: 'Twob',
                component: () =>
                    import ("../components/ddgHD/twob.vue")
            },
            {
                path: '/twoc',
                name: 'Twoc',
                component: () =>
                    import ("../components/ddgHD/twoc.vue")
            },
        ]
    },
    {
        path: '/sliderinfo1',
        name: 'Sliderinfo1',
        component: () =>
            import ("../components/ddgHD/sliderinfo1.vue")
    },
    {
        path: '/sliderinfo2',
        name: 'Sliderinfo2',
        component: () =>
            import ("../components/ddgHD/sliderinfo2.vue")
    },
    {
        path: '/sliderinfo3',
        name: 'Sliderinfo3',
        component: () =>
            import ("../components/ddgHD/sliderinfo3.vue")
    },
    {
        path: '/sonpopular',
        name: 'Sonpopular',
        component: () =>
            import ("../components/ddgHD/sonpopular.vue")
    },
    {
        path: '/xq',
        name: 'Xq',
        component: () =>
            import ("../components/ddgHD/xq.vue")
    },

{
        path: '/pj',
        name: 'Pj',
        component: () =>
            import ("../components/ddgHD/pj.vue"),
            children: [{
                path: '/pja',
                name: 'Pja',
                component: () =>
                    import ("../components/ddgHD/pja.vue")
            },
            {
                path: '/pjb',
                name: 'Pjb',
                component: () =>
                    import ("../components/ddgHD/pjb.vue")
            }
        ]
    },
    {
        path: '/gwc',
        name: 'Gwc',
        component: () =>
            import ("../components/ddgHD/gwc.vue")
    },
    
    {
        path: '/crowdL',
        name: 'CrowdL',
        component: () =>
            import ("../components/ddgHD/crowdL.vue")
    },
    {
        path: '/crowds',
        name: 'Crowds',
        component: () =>
            import ("../components/ddgHD/crowds.vue")
    },
    {
        path: '/flavorzi',
        name: 'Flavorzi',
        component: () =>
            import ("../components/ddgHD/flavorzi.vue")
    },










    {
        path: '/details',
        name: 'Details',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/details.vue')
    },
    {
        path: '/brand',
        name: 'Brand',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brand.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'era',
                name: 'Era',
                component: () =>
                    import ('../views/cakeCC/er/era.vue'),
            },
            {
                path: 'erc',
                name: 'Erc',
                component: () =>
                    import ('../views/cakeCC/er/erc.vue'),
            },
            {
                path: 'erd',
                name: 'Erd',
                component: () =>
                    import ('../views/cakeCC/er/erd.vue'),
            }
        ]
    },
    {
        path: '/brand2',
        name: 'Brand2',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brand2.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'era',
                name: 'Era2',
                component: () =>
                    import ('../views/cakeCC/er/era.vue'),
            },
            {
                path: 'erc',
                name: 'Erc2',
                component: () =>
                    import ('../views/cakeCC/er/erc.vue'),
            },
            {
                path: 'erd',
                name: 'Erd2',
                component: () =>
                    import ('../views/cakeCC/er/erd.vue'),
            }
        ]
    },
    {
        path: '/brand3',
        name: 'Brand3',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brand3.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'era',
                name: 'Era3',
                component: () =>
                    import ('../views/cakeCC/er/era.vue'),
            },
            {
                path: 'erc',
                name: 'Erc3',
                component: () =>
                    import ('../views/cakeCC/er/erc.vue'),
            },
            {
                path: 'erd',
                name: 'Erd3',
                component: () =>
                    import ('../views/cakeCC/er/erd.vue'),
            }
        ]
    },
    {
        path: '/brand4',
        name: 'Brand4',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brand4.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'era',
                name: 'Era4',
                component: () =>
                    import ('../views/cakeCC/er/era.vue'),
            },
            {
                path: 'erc',
                name: 'Erc4',
                component: () =>
                    import ('../views/cakeCC/er/erc.vue'),
            },
            {
                path: 'erd',
                name: 'Erd4',
                component: () =>
                    import ('../views/cakeCC/er/erd.vue'),
            }
        ]
    },
    {
        path: '/brand5',
        name: 'Brand5',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brand5.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'era',
                name: 'Era5',
                component: () =>
                    import ('../views/cakeCC/er/era.vue'),
            },
            {
                path: 'erc',
                name: 'Erc5',
                component: () =>
                    import ('../views/cakeCC/er/erc.vue'),
            },
            {
                path: 'erd',
                name: 'Erd5',
                component: () =>
                    import ('../views/cakeCC/er/erd.vue'),
            }
        ]
    },
    {
        path: '/brand6',
        name: 'Brand6',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brand6.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'era',
                name: 'Era6',
                component: () =>
                    import ('../views/cakeCC/er/era.vue'),
            },
            {
                path: 'erc',
                name: 'Erc6',
                component: () =>
                    import ('../views/cakeCC/er/erc.vue'),
            },
            {
                path: 'erd',
                name: 'Erd6',
                component: () =>
                    import ('../views/cakeCC/er/erd.vue'),
            }
        ]
    },
    {
        path: '/brand7',
        name: 'Brand7',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brand7.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'era',
                name: 'Era7',
                component: () =>
                    import ('../views/cakeCC/er/era.vue'),
            },
            {
                path: 'erc',
                name: 'Erc7',
                component: () =>
                    import ('../views/cakeCC/er/erc.vue'),
            },
            {
                path: 'erd',
                name: 'Erd7',
                component: () =>
                    import ('../views/cakeCC/er/erd.vue'),
            }
        ]
    },
    {
        path: '/today',
        name: 'Today',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/today.vue')
    },
    {
        path: '/all',
        name: 'All',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/all.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'erx',
                name: 'Erx',
                component: () =>
                    import ('../views/cakeCC/er/erx.vue'),
            },
            {
                path: 'ery',
                name: 'Ery',
                component: () =>
                    import ('../views/cakeCC/er/ery.vue'),
            },
            {
                path: 'erz',
                name: 'Erz',
                component: () =>
                    import ('../views/cakeCC/er/erz.vue'),
            }
        ]
    },
    {
        path: '/brandlist',
        name: 'Brandlist',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brandlist.vue')
    },
    {
        path: '/city',
        name: 'City',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/city.vue')
    },
    //  {
    //     path: '/',
    //     name: 'Home',
    //     component: () =>
    //         import ("../views/ddgHD/Home.vue")
    // },
    {
        path: '/crowd',
        name: 'crowd',
        component: () =>
            import ("../components/ddgHD/crowd.vue")
    },
    {
        path: '/cywh',
        name: 'Cywh',
        component: () =>
            import ("../components/ddgHD/cywh.vue")
    },
    {
        path: '/xsqg/:city',
        name: 'Xsqg',
        component: () =>
            import ("../components/ddgHD/xsqg.vue"),
        children: [{
                path: '/xsqga',
                name: 'Xsqga',
                component: () =>
                    import ("../components/ddgHD/xsqga.vue")
            },
            {
                path: '/xsqgb',
                name: 'Xsqgb',
                component: () =>
                    import ("../components/ddgHD/xsqgb.vue")
            },
        ]
    },
    {
        path: '/citys',
        name: 'Citys',
        component: () =>
            import ("../components/ddgHD/citys.vue")
    },
    {
        path: '/sliderinfo',
        name: 'Sliderinfo',
        component: () =>
            import ("../components/ddgHD/sliderinfo.vue"),
        children: [{
                path: '/twoa',
                name: 'Twoa',
                component: () =>
                    import ("../components/ddgHD/twoa.vue")
            },
            {
                path: '/twob',
                name: 'Twob',
                component: () =>
                    import ("../components/ddgHD/twob.vue")
            },
            {
                path: '/twoc',
                name: 'Twoc',
                component: () =>
                    import ("../components/ddgHD/twoc.vue")
            },
        ]
    },
    {
        path: '/sliderinfo1',
        name: 'Sliderinfo1',
        component: () =>
            import ("../components/ddgHD/sliderinfo1.vue")
    },
    {
        path: '/sliderinfo2',
        name: 'Sliderinfo2',
        component: () =>
            import ("../components/ddgHD/sliderinfo2.vue")
    },
    {
        path: '/sliderinfo3',
        name: 'Sliderinfo3',
        component: () =>
            import ("../components/ddgHD/sliderinfo3.vue")
    },
    {
        path: '/sonpopular',
        name: 'Sonpopular',
        component: () =>
            import ("../components/ddgHD/sonpopular.vue")
    },
    {
        path: '/xq',
        name: 'Xq',
        component: () =>
            import ("../components/ddgHD/xq.vue")
    },
    {
        path: '/input',
        name: 'Input',
        component: () =>
            import ("../components/ddgHD/input.vue")
    },



    {
        path: '/details',
        name: 'Details',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/details.vue')
    },
    {
        path: '/brand',
        name: 'Brand',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brand.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'era',
                name: 'Era',
                component: () =>
                    import ('../views/cakeCC/er/era.vue'),
            },
            {
                path: 'erc',
                name: 'Erc',
                component: () =>
                    import ('../views/cakeCC/er/erc.vue'),
            },
            {
                path: 'erd',
                name: 'Erd',
                component: () =>
                    import ('../views/cakeCC/er/erd.vue'),
            }
        ]
    },
    {
        path: '/brand2',
        name: 'Brand2',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brand2.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'era',
                name: 'Era2',
                component: () =>
                    import ('../views/cakeCC/er/era.vue'),
            },
            {
                path: 'erc',
                name: 'Erc2',
                component: () =>
                    import ('../views/cakeCC/er/erc.vue'),
            },
            {
                path: 'erd',
                name: 'Erd2',
                component: () =>
                    import ('../views/cakeCC/er/erd.vue'),
            }
        ]
    },
    {
        path: '/brand3',
        name: 'Brand3',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brand3.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'era',
                name: 'Era3',
                component: () =>
                    import ('../views/cakeCC/er/era.vue'),
            },
            {
                path: 'erc',
                name: 'Erc3',
                component: () =>
                    import ('../views/cakeCC/er/erc.vue'),
            },
            {
                path: 'erd',
                name: 'Erd3',
                component: () =>
                    import ('../views/cakeCC/er/erd.vue'),
            }
        ]
    },
    {
        path: '/brand4',
        name: 'Brand4',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brand4.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'era',
                name: 'Era4',
                component: () =>
                    import ('../views/cakeCC/er/era.vue'),
            },
            {
                path: 'erc',
                name: 'Erc4',
                component: () =>
                    import ('../views/cakeCC/er/erc.vue'),
            },
            {
                path: 'erd',
                name: 'Erd4',
                component: () =>
                    import ('../views/cakeCC/er/erd.vue'),
            }
        ]
    },
    {
        path: '/brand5',
        name: 'Brand5',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brand5.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'era',
                name: 'Era5',
                component: () =>
                    import ('../views/cakeCC/er/era.vue'),
            },
            {
                path: 'erc',
                name: 'Erc5',
                component: () =>
                    import ('../views/cakeCC/er/erc.vue'),
            },
            {
                path: 'erd',
                name: 'Erd5',
                component: () =>
                    import ('../views/cakeCC/er/erd.vue'),
            }
        ]
    },
    {
        path: '/brand6',
        name: 'Brand6',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brand6.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'era',
                name: 'Era6',
                component: () =>
                    import ('../views/cakeCC/er/era.vue'),
            },
            {
                path: 'erc',
                name: 'Erc6',
                component: () =>
                    import ('../views/cakeCC/er/erc.vue'),
            },
            {
                path: 'erd',
                name: 'Erd6',
                component: () =>
                    import ('../views/cakeCC/er/erd.vue'),
            }
        ]
    },
    {
        path: '/brand7',
        name: 'Brand7',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brand7.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'era',
                name: 'Era7',
                component: () =>
                    import ('../views/cakeCC/er/era.vue'),
            },
            {
                path: 'erc',
                name: 'Erc7',
                component: () =>
                    import ('../views/cakeCC/er/erc.vue'),
            },
            {
                path: 'erd',
                name: 'Erd7',
                component: () =>
                    import ('../views/cakeCC/er/erd.vue'),
            }
        ]
    },
    {
        path: '/today',
        name: 'Today',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/today.vue')
    },
    {
        path: '/all',
        name: 'All',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/all.vue'),
        children: [
            // 配置二级路由的规则（同一级路由）
            {
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                // path不加/path不加/path不加/path不加/path不加/
                path: 'erx',
                name: 'Erx',
                component: () =>
                    import ('../views/cakeCC/er/erx.vue'),
            },
            {
                path: 'ery',
                name: 'Ery',
                component: () =>
                    import ('../views/cakeCC/er/ery.vue'),
            },
            {
                path: 'erz',
                name: 'Erz',
                component: () =>
                    import ('../views/cakeCC/er/erz.vue'),
            }
        ]
    },
    {
        path: '/brandlist',
        name: 'Brandlist',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/brandlist.vue')
    },
    {
        path: '/city',
        name: 'City',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ('../views/cakeCC/city.vue')
    },














    // 礼品页面的路由
    {
        path: '/strategy:xiaoming',
        name: 'Strategy',
        component: () =>
            import ('../views/lp/strategy.vue')
    },
    {
        path: "/Bestie",
        name: "Bestie",
        component: () =>
            import ("../views/lp/business.vue"),
    },
    {
        path: '/boyf',
        name: 'Boyf',
        component: () =>
            import ('../views/lp/boyf.vue')
    },
    {
        path: '/elder',
        name: 'Elder',
        component: () =>
            import ('../views/lp/elder.vue')
    },
    {
        path: '/fashion',
        name: 'Fashion',
        component: () =>
            import ('../views/lp/fashion.vue')
    },
    {
        path: '/food',
        name: 'Food',
        component: () =>
            import ('../views/lp/food.vue')
    },
    {
        path: '/friend',
        name: 'Friend',
        component: () =>
            import ('../views/lp/friend.vue')
    },
    {
        path: '/girlf',
        name: 'Girlf',
        component: () =>
            import ('../views/lp/girlf.vue')
    },
    {
        path: '/husband',
        name: 'Husband',
        component: () =>
            import ('../views/lp/husband.vue')
    },
    {
        path: '/luck',
        name: 'Luck',
        component: () =>
            import ('../views/lp/luck.vue')
    },
    {
        path: '/news',
        name: 'News',
        component: () =>
            import ('../views/lp/news.vue')
    },
    {
        path: '/originality',
        name: 'Originality',
        component: () =>
            import ('../views/lp/originality.vue')
    },
    {
        path: '/selected',
        name: 'Selected',
        component: () =>
            import ('../views/lp/selected.vue')
    },
    {
        path: '/selfsupport',
        name: 'Selfsupport',
        component: () =>
            import ('../views/lp/selfsupport.vue')
    },
    {
        path: '/skin',
        name: 'Skin',
        component: () =>
            import ('../views/lp/skin.vue')
    },

    {
        path: '/strategycake',
        name: 'Strategycake',
        component: () =>
            import ('../views/lp/strategycake.vue')
    },
    {
        path: '/giftinfo:shangpin',
        name: 'Giftinfo',
        component: () =>
            import ('../components/lp/giftinfo.vue')
    },


    //鲜花页面
    {
        path: '/flower',
        name: 'Flower',
        component: () =>
            import ('../views/flower/flower.vue')
    },
    {
        path: '/flowertype',
        name: 'Flowertype',
        component: () =>
            import ('../views/flower/flowertype.vue')
    },
    {
        path: '/flowerinfo',
        name: 'Flowerinfo',
        component: () =>
            import ('../views/flower/flowerinfo.vue')
    },
    {
        path: '/newbag',
        name: 'Newbag',
        component: () =>
            import ('../views/flower/newbag.vue')
    },
    {
        path: '/discuss',
        name: 'Discuss',
        component: () =>
            import ('../views/flower/discuss.vue')
    },
    {
        path: '/scrollinfo',
        name: 'Scrollinfo',
        component: () =>
            import ('../views/flower/scrollinfo.vue')
    },
    {
        path: '/heartbrand/era',
        name: 'Brand',
        component: () =>
            import ('../views/flower/heartbrand.vue'),
        children: [{
                path: '/heartbrand/era',
                name: 'Era',
                component: () =>
                    import ('../views/flower/list/era.vue')
            },
            {
                path: '/heartbrand/erc',
                name: 'Erc',
                component: () =>
                    import ('../views/flower/list/erc.vue')
            },
            {
                path: '/heartbrand/erd',
                name: 'Erd',
                component: () =>
                    import ('../views/flower/list/erd.vue')
            }
        ]
    },
    {
        path: '/coupon/ernouse',
        name: 'Coupon',
        component: () =>
            import ('../views/flower/coupon.vue'),
        children: [{
                path: '/coupon/ernouse',
                name: 'Ernouse',
                component: () =>
                    import ('../views/flower/list/ernouse.vue')
            },
            {
                path: '/coupon/eruse',
                name: 'Eruse',
                component: () =>
                    import ('../views/flower/list/eruse.vue')
            },
        ]
    },


    //我的页面的路由
    {
        path: "/My",
        name: "My",
        component: () =>
            import ("../views/my/amy.vue"),
        beforeEnter: (to, from, next) => {
            var username = localStorage.getItem("token");
            if (username) {
                console.log(username);
                next("/Mycontent");
            } else {
                if (to.path == "/Denglu/DAccountLogin") {
                    next();
                } else {
                    next("DAccountLogin");
                }
            }
        },
    },
    {
        path: "/Mycontent",
        name: "Mycontent",
        component: () =>
            import ("../views/my/Mycontent.vue"),
    },

    {
        path: "/Setup",
        name: "Setup",
        component: () =>
            import ("../views/my/setup.vue"),
    },

    {
        path: "/Denglu",
        name: "Denglu",
        component: () =>
            import ("../views/my/denglu.vue"),
        children: [{
                path: "/Dengphone",
                name: "Dengphone",
                component: () =>
                    import ("../views/my/dengphone.vue"),
            },
            {
                path: "/DAccountLogin",
                name: "DAccountLogin",
                component: () =>
                    import ("../views/my/dAccountLogin.vue"),
            },
        ],
    },
    {
        path: "/Zhuce",
        name: "Zhuce",
        component: () =>
            import ("../views/my/zzhuce.vue"),
    },
    {
        path: "/Shopingcar",
        name: "Shopingcar",
        component: () =>
            import ("../views/my/shopingcar.vue"),
    },
    //我的订单路由
    {
        path: "/Zwodedingdangz",
        name: "Zwodedingdangz",
        component: () =>
            import ("../views/my/zwodedingdangz.vue"),
        children: [{
                path: "/Zdaifukuan",
                name: "Zdaifukuan",
                component: () =>
                    import ("../views/my/zdaifukuan.vue"),
            },
            {
                path: "/Zdaifahuo",
                name: "Zdaifahuo",
                component: () =>
                    import ("../views/my/zdaifahuo.vue"),
            },
            {
                path: "/Zdaishouhuo",
                name: "Zdaishouhuo",
                component: () =>
                    import ("../views/my/zdaishouhuo.vue"),
            },
            {
                path: "/Zdaipingjia",
                name: "Zdaipingjia",
                component: () =>
                    import ("../views/my/zdaipingjia.vue"),
            },
            {
                path: "/Zdaituikuan",
                name: "Zdaituikuan",
                component: () =>
                    import ("../views/my/zdaituikuan.vue"),
            },



        ]
    },
    ///我的收藏页面
    {
        path: "/Shoucang",
        name: "Shoucang",
        component: () =>
            import ("../views/my/shoucang.vue"),
        children: [

            {
                path: "/Shoucanglipin",
                name: "Shoucanglipin",
                component: () =>
                    import ("../views/my/shoucanglipin.vue"),
            },
            {
                path: "/Shoucanggonglue",
                name: "Shoucanggonglue",
                component: () =>
                    import ("../views/my/shoucanggonglue.vue"),
            },



        ]
    },










    //积分
    {
        path: '/robot',
        name: 'robot',
        component: () =>
            import ('../views/inte/robot.vue')
    },
    {
        path: '/integral',
        name: 'integral',
        component: () =>
            import ('../views/inte/integral.vue')
    },
    {
        path: '/detailed',
        name: 'detailed',
        component: () =>
            import ('../views/inte/detailed.vue')
    },
    {
        path: '/exp',
        name: 'exp',
        component: () =>
            import ('../views/inte/exp.vue')
    },
    {
        path: '/',
        name: 'Home',
        component: () =>
            import ("../views/ddgHD/Home.vue")
    },
];

const router = new VueRouter({
    // mode: "history",
    base: process.env.BASE_URL,
    routes,
});

export default router;